<template>
  <div class="borderBox">
    <el-row>
      <el-col :span="18" :offset="3">
        <el-table :data="datas" style="width: 100%">
          <el-table-column type="index" width="50"></el-table-column>
          <el-table-column prop="name" label="属性名称"></el-table-column>
          <el-table-column prop="desc" label="描述"></el-table-column>
          <el-table-column prop="type" label="类型"></el-table-column>
          <el-table-column prop="remark" label="备注"></el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-chart-bar</div>
          <dve-chart-bar style="width:100%;height:250px;" dur="3000"></dve-chart-bar>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-chart-bar</div>
          <dve-chart-line style="width:100%;"></dve-chart-line>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datas: [
        {
          name: "color1",
          desc: "颜色1",
          type: "String",
          remark: ""
        },
        {
          name: "color2",
          desc: "颜色2",
          type: "String",
          remark: ""
        },
        {
          name: "is-reverse",
          desc: "反转",
          type: "String(true|false)",
          remark: "风格2、4、8有效"
        },
        {
          name: "title",
          desc: "标题",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "title-size",
          desc: "标题字体大小",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "title-color",
          desc: "标题字体颜色",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "dur",
          desc: "动画时长",
          type: "String",
          remark: "风格9有效"
        }
      ]
    };
  }
};
</script>

<style >
.borderBox {
  height: 100%;
}
.box-card {
  background-color: #333;
}
.el-card__body {
  background-color: #333;
  text-align: center;
}
.el-col {
  height: 100%;
}
.card-header {
  color: #fff;
  text-align: left;
}
.el-card__header {
  border-bottom: 1px solid #444 !important;
  background-color: #333 !important;
}
</style>